import service from '@/utils/request'


export const visitorApi = (id: number) => {
	return service.get('/new/new/visitor/' + id)
}

export const visitorListApi = () => {
	return service.get('/new/new/visitor/allList')
}

export const visitorSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/new/new/visitor', dataForm)
	} else {
		return service.post('/new/new/visitor', dataForm)
	}
}


